package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.dao.impl.UserDaoImpl;
import com.itheima.domain.User;
import com.itheima.service.UserService;

public class UserServiceImpl implements UserService {
    //调用持久层
    private UserDao userDao=new UserDaoImpl();

    @Override
    public User login(String username, String pwd) {
        return userDao.findByNameAndPwd(username,pwd);
    }
}
